package com.example.example.transforms;

import android.view.View;

/**
 * Created by ZhenDe on 2017/11/7.
 */

public class StackTransforms extends BaseTransforms {
    @Override
    protected void onTransform(View pagerView, float position) {
        pagerView.setTranslationX(position < 0 ? 0f : -pagerView.getWidth() * position);
    }
}
